package com.wuyou.designPatterns.adapter.questions;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Properties;
import java.util.concurrent.TimeUnit;

public class Test {


    public static void main(String[] args) {
        FileIO fileIO = new FileProperties();
        fileIO.setValue("k1", "v1");
        fileIO.setValue("k2", "v2");
        fileIO.setValue("k3", "v3");
        fileIO.setValue("k4", "v4");

        try {
            fileIO.writeToTile("test.txt");
            fileIO.readFromFile("test.txt");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
